<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BoSecurity
 *
 * @author EADeveloper
 */
class BoSecurity extends easoftwarebussinesobject {

    /**
     *
     * @param type $name
     * @return \name 
     */
    public static function getMe($name = "BoSecurity") {
        return easoftwarebussinesobject::getMe($name);
    }

    public function registrarAccion($action = "vacia", $desc = "NA") {
        $usr = $_SESSION[USUARIO]["usuario"];
        $ip = $_SERVER['REMOTE_ADDR'];
        $exp = $_SERVER['HTTP_USER_AGENT'];
        $sql = sprintf("INSERT INTO cllg_user_log
                        (FECHA, USUARIO, ACCION, DESCRIPCION, IPCLIENTE, EXPLORADOR) 
                        VALUES (NOW(), '%s', '%s', '%s', '%s', '%s');", $usr, $action, $desc, $ip, $exp);
        $this->execute($sql);
    }

}

?>
